<include file="Public/header"/>
<div class="panel panel-default row no-borders">
    <div class="panel-heading" style="background: #fafafa;">
        <h5 class="panel-title text-center"> <i class="fa fa-edit"></i> 修改订单信息</h5>
    </div>
</div>
<div class="wrapper m-t">
    <div class="panel panel-primary">
        <div class="panel-heading no-padding">
            <div class="panel-options">
                <ul class="nav nav-tabs no-borders">
                    <li class="active"><a href="{:U('Orders/orderUpdate?rid='.$arr['rid'])}">订单信息</a></li>
                    <li><a href="{:U('Orders/updateProduct?rid='.$arr['rid'])}">产品信息</a></li>
                    <li><a href="{:U('Orders/updateCraft?rid='.$arr['rid'])}">工序信息</a></li>
                    <li><a href="{:U('Orders/updateMaterial?rid='.$arr['rid'])}">原材料信息</a></li>
                </ul>
            </div>
        </div>
        <div class="panel-body">
            <div class="tab-content">
                <div id="tab-1" class="tab-pane active">
                    <form class="form-horizontal" id="formvalidate" action="{:U('')}" method="post">
                        <div class="col-lg-3">
                            <div class="input-group m-b">
                                <span class="input-group-addon">订单编号</span>
                                <input type="text" class="form-control" value="{$arr.order_number}" disabled="disabled">
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="input-group m-b">
                                <span class="input-group-addon">经销商</span>
                                <input type="text" class="form-control" value="{$arr.company_name}" disabled="disabled">
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="input-group m-b">
                                <span class="input-group-addon">客户名称</span>
                                <input type="text" class="form-control" value="{$arr.username}" disabled="disabled">
                            </div>
                        </div>
                        <div class="col-lg-3" id="data_1">
                            <div class="input-group m-b date">
                                <span class="input-group-addon">下单时间</span>
                                <input type="text" value="{$arr.order_time|date='Y-m-d H:i:s',###}" class="form-control" disabled="disabled">
                            </div>
                        </div>

                        <div class="col-lg-2">
                            <div class="input-group m-b">
                                <span class="input-group-addon">订单金额</span>
                                <input type="number" name="order_price" value="{$arr.order_price}" class="form-control">
                            </div>
                        </div>
                        <div class="col-lg-2">
                            <div class="input-group m-b">
                                <span class="input-group-addon bg-info">定金</span>
                                <input type="number" value="{$arr.downpayment}" name="downPayment" class="form-control">
                            </div>
                        </div>

                        <div class="col-lg-2">
                            <div class="input-group m-b">
                                <span class="input-group-addon bg-info">余款</span>
                                <input type="number" name="sparemoney"  value="{$arr.sparemoney}" class="form-control">
                            </div>
                        </div>
                        <div class="col-lg-2">
                            <div class="input-group m-b">
                                <span class="input-group-addon">制单人</span>
                                <input type="text" name="eecuPeople" disabled value="{$arr.eecupeople}" class="form-control">
                            </div>
                        </div>
                        <div class="col-lg-2">
                            <div class="input-group m-b">
                                <span class="input-group-addon">审单人</span>
                                <input type="text" name="auditPeople" disabled value="{$arr.auditpeople}" class="form-control">
                            </div>
                        </div>
                        <div class="col-lg-2">
                            <div class="input-group m-b">
                                <span class="input-group-addon">财务</span>
                                <input name="finance" value="{$arr.finance}" disabled type="text" class="form-control">
                            </div>
                        </div>

                        <div class="col-lg-12">
                            <div class="input-group m-b">
                                <span class="input-group-addon">备 注</span>
                                <input name="orderRemark" value="{$arr.orderremark}"  type="text" class="form-control">
                            </div>
                        </div>

                        <input type="hidden" name="rid" value="{$arr.rid}"/>
                        <div class="clearfix"></div>
                        <div class="form-group">
                            <input type="submit" target-form="form-horizontal"  class="ajax-post btn btn-primary col-lg-1 col-lg-push-5 m-t-lg" value="提交"/>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<include file="Public/footer"/>
<script src="__PUBLIC__/Admin/js/plugins/datapicker/bootstrap-datepicker.js"></script>
